package com.example.recyclelibrary;

import android.content.Context;
import android.util.AttributeSet;
import android.view.animation.RotateAnimation;
import android.widget.LinearLayout;

/**
 * Created by Eddy on 5/5/17.
 * RecycleView刷新头布局
 */

public class RecycleHeadView extends LinearLayout{

    //刷新头布局
    LinearLayout mContentView;
    //这是一个旋转动画
    private RotateAnimation mRotateUpAnim;
    private RotateAnimation mRotateDownAnim;
    //旋转默认的动画时间
    private static final int ROTATE_ANIM_DURATION = 180;
    private int mMeasuredHeight;
    private int mStatus;
    //正在刷新的状态
    public final static int STATE_REFRESHING = 2;
    //刷新结束的状态
    public final static int STATE_DONE = 3;
    //没有任何的状态
    public final static int STATE_NORMAL = 0;
    //准备刷新的状态
    private final int STATE_RELEASE_TO_REFRESH = 1;

    public RecycleHeadView(Context context) {
        super(context);
        initView();
    }

    public RecycleHeadView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public RecycleHeadView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    private void initView(){

    }
}
